package order.service.impl;

import order.service.Order;
import order.service.pojo.Stock;

public class BuyImpl implements Order {
    private Stock stock;
    public BuyImpl(Stock stock){
        this.stock = stock;
    }
    @Override
    public void execute() {
        stock.buy();
    }
}
